/**
 *
 *    Copyright (C) 2008  Fabrice douteaud (fdouteaud@gmail.com)
 *
 *    This file is part of ClearBudget.
 *
 *    ClearBudget is free software: you can redistribute it and/or modify
 *    it under the terms of the GNU General Public License as published by
 *    the Free Software Foundation, either version 3 of the License, or
 *    (at your option) any later version.
 *
 *    ClearBudget is distributed in the hope that it will be useful,
 *    but WITHOUT ANY WARRANTY; without even the implied warranty of
 *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *    GNU General Public License for more details.
 *
 *    You should have received a copy of the GNU General Public License
 *    along with ClearBudget.  If not, see <http://www.gnu.org/licenses/>.
 *
**/

/**
 * Main definitions
 *
 * NOTE: You may remove them because they are global
 */
body {
   margin: 0px;
   padding: 0px;
}
* html>body {
   margin-right: -3px; /* IE hack */
}
div {
   border: 0;
   margin: 0px;
   padding: 0px;
}

body, td, form, fieldset {
   font-family: "Bitstream Vera Sans", "Trebuchet MS", Geneva, Verdana, Arial, Helvetica, sans-serif;
   font-size: 90%;
}
body, h1, h2, h3, div, p, table, td, li, dd, dt, dl, blockquote, address, hr {
   margin: 0;
   padding: 0;
}
h1, h2, h3 {
   font-family: "Trebuchet MS", Geneva, Verdana, Arial, Helvetica, sans-serif;
   font-weight: normal;
   font-size: 100%;
}
a {
   text-decoration: none;
}
a:hover {
   text-decoration: underline;
   }
h1 {
   font-size: 200%;
}
h2 {
   font-size: 175%;
}
h3 {
   font-size: 150%;
}
form {
   margin: 0;
   padding: 0;
}
fieldset {
   margin-bottom: 1em;
   padding: 1em;
}
img {
   border: 0;
}
hr {
   height: 1px;
   border: 1px solid gray;
}
p {
   padding: 0;
   margin: 0;
   margin-bottom: 0.8em;
}

/**
 * Header definitions
 */
#header {
    position: relative;
    min-height: 109px;
    height: 5em;
    padding: 0;
    margin: 5px;
    margin-bottom: 1em;
    height: 3em;
    -moz-border-radius: 5px;
    -moz-border-radius: 5px;
    border: 1px solid;
    width: 950px;
}
.header {
    margin: 0px;
    padding: 0px;
}

#header h1 {
   padding-left: 20px;
   font-weight: bold;
}

#header h1 a {
   text-decoration: none;
}

#clock {
  position: absolute;
  right: 2px;
  top: 5px;
  }

/**
 * Main navigation
 */
#header ul {
   width: auto;
   position: absolute;
   bottom: 0;
   right: 0;
   margin: 0;
   padding: 0 105px 0 0;
   list-style: none;
}
#header li {
   float: right;
   padding: 0 6px 0 0;
   margin: 0 1px 0 0;
   display: inline;
   white-space: nowrap;
}
#header ul a {
    float: left;
    display: block;
    padding: 6px 6px 6px 6px;
    font-weight: bold;
    font-size: 110%;
    text-decoration: none;
    border: 1px solid;
    -moz-border-radius-topleft: 5px;
    -moz-border-radius-topright: 5px;
}
#header ul a:hover {
   text-decoration: underline;
}

/**
 * Categories
 */
#categories {
   width: 198px;
   margin-bottom: 10px;
   padding: 0;
   font-size: 100%;
   border: 1px solid;
    -moz-border-radius: 5px 5px 5px 5px;
    border-radius: 5px 5px 5px 5px;
}
#categories ul {
   list-style: none;
   margin: 0;
   padding: 0;
   border: none;
}
#categories li {
   margin: 0;
   border-left: 10px solid;
}
#categories li a {
   display: block;
   padding: 5px 5px 5px 0.5em;
   border-bottom: 1px solid;
   text-decoration: none;
   height: 100%; /* stupid IE fix */
}
html>body #categories li a {
   width: auto;
}
#categories li ul li {
   margin: 0;
   border-left: 0px
}
#categories li ul a {
   padding-left: 15px;
}
#categories ul ul ul a {
   padding-left: 25px;
}
#categories ul ul ul ul a {
   padding-left: 35px;
}

/**
 * Search box and language selection box
 */
#search,
#langform,
#dateform {
    margin-bottom: 10px;
    border: 1px solid;
    padding: 5px;
    -moz-border-radius: 5px 5px 5px 5px;
    border-radius: 5px 5px 5px 5px;
}
#dateform fieldset,
#search fieldset,
#langform fieldset,
#dateform fieldset {
    display: inline;
    border: 0;
}
#dateform select,
#search .inputfield,
#langform .inputfield,
#dateform .inputfield {
    border: 1px solid;
    width: 140px;
}

#dateform input[type=submit],
#search input[type=submit],
#langform input[type=submit],
#loginform input[type=submit] {
    margin-top: 3px;
    padding: 0;
    border: 1px solid;
    margin-left: 0;
    -moz-border-radius: 5px 5px 5px 5px;		
    border-radius: 5px 5px 5px 5px;
}

/**
 * Main content
 */
.main-content {
   padding: 0;
   margin: 0;
   line-height: 1.3;
}
.main-content h2,
.main-content h3 {
   border-bottom: 1px solid;
   margin-bottom: 7px;
}
.main-content ul, ol {
    padding-left: 1em;
    list-style-image: none;
    list-style-position: outside;
}
.main-content li {
   margin-left: 20px;
}

/**
 * Submit button definitions
 */
input[type=submit] {
   border: 2px solid;
   padding: 2px 4px;
   margin-left: 0;
}


/**
* Left and right sidebar definitions
*/
.sidebar {
  padding: 0;
  margin: 0;
}

/**
 * Main wrapper around the div containers
 */
#wrapper1 {
   /*min-width: 800px;
   max-width: 800px;*/
}
#wrapper1, #wrapper2 {
   margin: 0px;
   padding: 0px;
}

/**
 * Main columns definitions
 */
.columns {
   border: none;
   margin-top: 0px;
}
.leftcolumn {
   float: left;
   left: 0px;
   width: 200px;
   margin: 0px;
   padding-left: 20px;
}
.centercolumn {
   margin: 0px;
   padding-left: 0px;
   /*margin-right: 255px;*/
   margin-left: 210px;
   width: 750px;
}

/**
 * Padding definitions for the columns
 */
.centerpadding, .leftpadding, .rightpadding {
   margin: 0px;
   padding: 0px;
}
.rightpadding {
   padding-left: 0;
}
.centerpadding {
   padding-left: 20px;
   padding-right: 20px;
}
.clearing {
   height: 0;
   margin: 10px;
   clear: both;
   display: none;
}

/**
 * Footer definitions
 */
#footer {
  min-height: 20px;
  margin: 5px;
  clear: both;
  padding-right: 10px;
  padding-top: 2px;
  text-align: right;
  width: 950px;
  -moz-border-radius: 5px;
  -moz-border-radius: 5px;
  border: 1px solid;
  }
    
#footer p#copyrightnote {
   text-align: right;
}

.title {
	background:#3333FF;
	border: 1px solid #444;
    -moz-border-radius: 5px 5px 5px 5px;
    border-radius: 5px 5px 5px 5px;
	color:#FFF;
	display:block;
	font-weight:bold;
	font-variant: small-caps;
	line-height:20px;
	margin: 0 0 0 10px;
	padding: 0 0 0 10px;
}

.tableDiv {
  background:#EEEEEE;
	border: 1px solid #444;
    -moz-border-radius: 5px 5px 5px 5px;
    border-radius: 5px 5px 5px 5px;
	color:#000;
	display:block;
	margin: 0 0 0 10px;
	padding: 0 0 0 10px;
  }

.tableDiv label {
  background:#EEEEEE;
	color:#000;
	font-weight:bold;
	font-variant: small-caps;
	font-size: 150%;
  line-height:30px;
	}
  
blockquote {
	background:#FFFFFF url(error.png) no-repeat center left;
	border: 1px solid #993030;
    -moz-border-radius: 5px 5px 5px 5px;
    border-radius: 5px 5px 5px 5px;
	color:#993030;
	display:block;
	font-weight:bold;
	line-height:30px;
	margin:0 0 0 10px;
	padding:0 0 0 60px;
	font-size: 110%;
  }

.categoryAmountOver a {
  background: red;
	color:#ffffff;
	text-decoration:none;
	font-weight: bold;
  }

.categoryAmountOver a:visited {
	color:#ffffff;
	text-decoration:underline;
	font-weight: bold;
  }

.categoryAmountOver a:hover {
	color:#ffffff;
	text-decoration:underline;
  } 
  
.categoryAmount a {
	color:#6D929B;
	text-decoration:none;
	font-weight: bold;
  }

.categoryAmount a:visited {
	color:#6D929B;
	text-decoration:underline;
	font-weight: bold;
  }

.categoryAmount a:hover {
	color:#6D929B;
	text-decoration:underline;
  } 

blockquote a:link {
	color:#993030;
	text-decoration:underline;
	font-weight: bold;
  }

blockquote a:visited {
	color:#993030;
	text-decoration:underline;
	font-weight: bold;
  }

blockquote a:hover {
	color:#000000;
	text-decoration:underline;
  }